package com.lyl.lawyer.dao;

import com.lyl.lawyer.model.dto.ServiceAddDto;
import com.lyl.lawyer.model.dto.ServiceFindDto;
import com.lyl.lawyer.model.dto.ServiceUpdateDto;
import com.lyl.lawyer.model.entity.ServiceModel;
import com.lyl.lawyer.model.vo.ServiceVo;

import java.util.List;

public interface ServiceMapper {

    int add(ServiceModel serviceModel);
    int update(ServiceModel serviceModel);
    int delete(Integer id);
    ServiceVo findById(Integer id);
    //ServiceVo findNewest();
    List<ServiceVo> findAll(ServiceFindDto serviceFindDto);
    List<ServiceVo> findByType(ServiceFindDto serviceFindDto);
    int countFindAll(ServiceFindDto serviceFindDto);
}
